import request from '@/utils/request'
export function getUserInfoApi(params) {
    return request({
        url: '/web/api/user/detail/info',
        method: 'get',
        params
    })
}
export function getAllWorksListApi(params) {
    return request({
        url: '/web/api/works/list',
        method: 'get',
        params
    })
}
export function getLikeListApi(params) {
    return request({
        url: '/web/api/works/like/list',
        method: 'get',
        params
    })
}
export function getCollectListApi(params) {
    return request({
        url: '/web/api/works/collect/list',
        method: 'get',
        params
    })
}
export function getHistoryListApi(params) {
    return request({
        url: '/web/api/works/visit/history/list',
        method: 'get',
        params
    })
}
export function searchFollowListApi(data) {
    return request({
        url: '/web/api/friend/search/follow/list',
        method: 'get',
        data
    })
}
export function searchFansListApi(data) {
    return request({
        url: '/web/api/friend/search/fans/list',
        method: 'get',
        data
    })
}
export function deleteHistoryApi(params) {
    return request({
        url: '/web/api/works/visit/history/delete',
        method: 'post',
        params
    })
}
export function logoutApi() {
    return request({
        url: 'web/api/logout',
        method: 'post'
    })
}